﻿@using AP.Framework.Infrastructure.Repositories
@using AP.Framework.Infrastructure.Database
@{
    ApContext context = new ApContext();
    ContactRepository contact = new ContactRepository(context);
    var contactList = contact.GetAll().FirstOrDefault();
}
<div class="section-wrap index-news">
    <div class="section-title section-mark clearfix">
        <a href="@Url.Action("Index", "Contact", new { area = "" })" ><em style="color: #1EA4E3">
            联系我们</em> </a>
    </div>
    <div class="section-content">
        <ul class="links-list" style="text-align: left;">
            <li>地址：@(contactList != null ? contactList.Address : "")
            </li>
            <li>电话：@(contactList != null ? contactList.Tel : "")
            </li>
            <li>传真：@(contactList != null ? contactList.Fax : "")
            </li>
            <li>手机：@(contactList != null ? contactList.Phone : "")
            </li>
            <li>邮箱：@(contactList != null ? contactList.Email : "")
            </li>
        </ul>
    </div>
</div>
